package com.zerui.manager.accessauthdevice.convertor;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zerui.manager.accessauthdevice.AccessAuthDevice;
import com.zerui.manager.accessauthdevice.entity.AccessAuthDeviceDo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author wh
 * @create_time 2023-09-02 15:28
 */
@Mapper
public interface AccessAuthDeviceConvert {

	AccessAuthDeviceConvert INSTANCE = Mappers.getMapper(AccessAuthDeviceConvert.class);

	List<AccessAuthDeviceDo> convertAccessAuthDevicesToAccessAuthDeviceDos(List<AccessAuthDevice> accessAuthDevices);

	Page<AccessAuthDevice> convertAccessAuthDeviceDoPageToAccessAuthDevices(Page<AccessAuthDeviceDo> accessAuthDeviceDoPage);

	AccessAuthDevice convertAccessAuthDeviceDoToAccessAuthDevice(AccessAuthDeviceDo accessAuthDeviceDo);

	List<AccessAuthDevice> convertAccessAuthDeviceDosToAccessAuthDevices(List<AccessAuthDeviceDo> accessAuthDeviceDos);
}
